import service from '@/utils/request'

export const useFamilyApi = (id: number) => {
	return service.get('/nb/staff/family/findById', {
		params: {
			id: id
		}
	})
}

export const useFamilySubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/staff/family/edit', dataForm)
	} else {
		return service.post('/nb/staff/family/add', dataForm)
	}
}
